package com.jiexinyun.dto.every;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@Schema(description = "备件入库子项", example = "{}")
public class AccessoryStorageInItemEvery {

    @NotBlank(message = "元数据编号不能为空")
    @Schema(description = "元数据编号",example = "7451638415215")
    private String metadataNo;

    @NotBlank(message = "单位需要选择")
    @Schema(description = "单位", example = "kg")
    private String unit;

    @NotBlank(message = "单位需要选择")
    @Schema(description = "单价", example = "kg")
    private BigDecimal unitPrice;

    @NotNull(message = "入库数量需要输入")
    @Schema(description = "入库数量", example = "50")
    @Min(value = 1, message = "数量必须大于0")
    private Integer quantity;

    @NotBlank(message = "出入库批次号不能为空")
    @Schema(description = "出入库批次号", example = "48618452315")
    private String batchNo;

    @Schema(description = "采购计划号", example = "safsdsaadsa")
    private String purchasePlanNo;

    @Schema(description = "备注", example = "备注")
    private String remark;

    @NotBlank(message = "库存库位不能为空")
    @Schema(description = "库存库位", example = "safsdsaadsa")
    private String warehouseLocationId;

}
